package com.amoyt.project.service.security.impl;

import com.amoyt.project.domain.pojo.Role;
import com.amoyt.project.mapper.RoleMapper;
import com.amoyt.project.service.security.RoleService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-08
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<String> getRoleKeyByUserId(String userId) {
        //只查询role里面的role_key
        return roleMapper.getRoleKeyByUserId(userId);
    }
}
